package com.sfc.spiderweb.service.impl.spider;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sfc.spiderweb.entity.po.spider.AmazonBillDateSiteColumn;
import com.sfc.spiderweb.mapper.spider.AmazonBillDateSiteColumnMapper;
import com.sfc.spiderweb.service.spider.AmazonBillDateSiteColumnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@DS("slave_2")
public class AmazonBillDateSiteColumnServiceImpl extends ServiceImpl<AmazonBillDateSiteColumnMapper, AmazonBillDateSiteColumn> implements AmazonBillDateSiteColumnService {

    @Autowired(required = false)
    private AmazonBillDateSiteColumnMapper amazonBillDateSiteColumnMapper;

    @Override
    public int insertBatch(List<AmazonBillDateSiteColumn> list) {
        return amazonBillDateSiteColumnMapper.insertBatch(list);
    }
}
